package com.netstar.salesman_90dsp.engine;

import android.content.Context;

import com.loopj.android.http.RequestParams;
import com.netstar.salesman_90dsp.config.DefaultConfig;
import com.netstar.salesman_90dsp.config.WebServerConfig;
import com.netstar.salesman_90dsp.model.TodayWorkModel;

/**
 * 今日工作，添加，业务逻辑类
 * 
 * @author zhangshuai
 * 
 */
public class YearTargetAddEngine {
	/**
	 * 请求参数
	 */
	private RequestParams params;
	/**
	 * 上下文
	 */
	private Context context;

	public YearTargetAddEngine(Context context) {
		super();
		this.context = context;
	}

	/**
	 * 提交今日工作参数
	 * 
	 * @param todayWorkModel
	 *            工作model
	 */
	public RequestParams getRequestParams(String target, String reason, String remarks) {
		params = new RequestParams();
		params.put(WebServerConfig.YearTargetAddRequestParamKeys.id,
				"0");
		params.put(WebServerConfig.YearTargetAddRequestParamKeys.userId,
				DefaultConfig.userModel.getUserId());
		return params;
	}
}
